package com.woniuxy.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Dealtime
 * @Description 缺陷处理记录模型
 * @Author 李磊
 * @Version 1.0
 **/
@TableName("t_dealtime")
@Data
public class Dealtime implements Serializable {

    private static final long serialVersionUID = 1L;

    /*缺陷处理记录ID*/
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;
    /*缺陷编号*/
    private Integer bugId;
    /*预计耗时*/
    private Double ptime;
    /*实际耗时*/
    private Double rtime;
    /*开始处理时间*/
    private Date starttime;
    /*处理完成时间*/
    private Date endtime;
    /*当前处理进度*/
    private String recordState;
    /*处理人*/
    private String dealbyName;
    /*处理进度文档下载地址*/
    private String fileAddress;

    public Dealtime setRecordId(Integer recordId) {
        this.recordId = recordId;
        return this;
    }

    public Dealtime setBugId(Integer bugId) {
        this.bugId = bugId;
        return this;
    }

    public Dealtime setPtime(Double ptime) {
        this.ptime = ptime;
        return this;
    }

    public Dealtime setRtime(Double rtime) {
        this.rtime = rtime;
        return this;
    }

    public Dealtime setStarttime(Date starttime) {
        this.starttime = starttime;
        return this;
    }

    public Dealtime setEndtime(Date endtime) {
        this.endtime = endtime;
        return this;
    }

    public Dealtime setRecordState(String recordState) {
        this.recordState = recordState;
        return this;
    }

    public Dealtime setDealbyName(String dealbyName) {
        this.dealbyName = dealbyName;
        return this;
    }

    public Dealtime setFileAddress(String fileAddress) {
        this.fileAddress = fileAddress;
        return this;
    }
}
